@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
ContainerContent Management ::
@parent
@stop

@section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">ContainerContent list</li>
@stop

@section('content.main')

<p>{{ link_to_route('car_balance.container_content.create', 'Add new ContainerContent', null, array('class' => 'btn btn-info')) }}</p>


{{  $container_contents->links() }}

<table class="table table-bordered table-striped table-hover">
    <thead>
    <tr>
                <th>Id</th>
                        <th>Container</th>                <th>Purchase Car</th>
        <th class="span2">Actions</th>
    </tr>
    </thead>
    <tbody>
    @foreach ($container_contents as $container_content)
    <tr>
        <td>{{  link_to_route('car_balance.container_content.show', $container_content->id, array($container_content->id), array()) }}</td>

        <td>{{  $container_content->container()->first() ? link_to_route('car_balance.container.show', $container_content->container()->first()->name, array('id' => $container_content->container()->first()->id), array()) : 'NULL' }}</td>
        <td>{{  $container_content->car()->first() ? link_to_route('car_balance.purchase_car.show', $container_content->car()->first()->name, array('id' => $container_content->car()->first()->id), array()) : 'NULL' }}</td>

        <td>
            <a href="{{  route('car_balance.container_content.edit', $container_content->id) }}" class="btn btn-mini">Edit</a>
            <a href="{{  route('car_balance.container_content.delete', $container_content->id) }}" class="btn btn-mini btn-danger">Delete</a>
        </td>
    </tr>
    @endforeach
    </tbody>
</table>

{{  $container_contents->links() }}

@stop